package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.VersionMapper;
import com.whq.entity.Version;
import com.whq.service.VersionService;

@Service(value = "tcVersionService")
public class VersionServiceImpl implements VersionService {

    @Autowired
    private VersionMapper<Version>tcVersionMapper;
    
    @Override
    public Integer insertSelective(Version tcVersion) throws Exception {
           return this.tcVersionMapper.insertSelective(tcVersion);
        }

    @Override
    public Integer insertBatch(List<Version> tcVersion) throws Exception {
           return this.tcVersionMapper.insertBatch(tcVersion) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcVersionMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcVersionMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Version tcVersion) {
           return this.tcVersionMapper.updateByPrimaryKeySelective(tcVersion);
    }

    @Override
    public Version findById(Object id) {
           return (Version) this.tcVersionMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Version> selectByCondition(Version tcVersion) {
           return (List<Version>) this.tcVersionMapper.selectByCondition(tcVersion);
    }

    @Override
    public Integer selectCountByCondition(Version tcVersion) {
           return  this.tcVersionMapper.selectCountByCondition(tcVersion);
    }

}
